package View;

import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;

/**
 * Panel for the start screen. Part of a card layout on ConfigFrame
 */
public class StartPanel extends JPanel
{
    JLabel background;
    JButton startButton;

    /**
     * Create the panel.
     */
    public StartPanel(MouseAdapter m)
    {
        this.setLayout(null);

        startButton = new JButton("");
        startButton.setMinimumSize(new Dimension(250, 80));
        startButton.setMaximumSize(new Dimension(250, 80));
        startButton.setIcon(new ImageIcon(ConfigFrame.class.getResource("/Sprites/start-button-selected.png")));
        startButton.setBounds(515, 400, 200, 80);
        this.add(startButton);

        background = new JLabel("");
        background.setBounds(0, 0, 1280, 720);
        this.add(background);
        background.setIcon(new ImageIcon(ConfigFrame.class.getResource("/Sprites/MapGenTitle.png")));

        startButton.addMouseListener(m);

    }



}
